<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:if test="${type=='CLIENT'}">
	<c:set var="estTypeName" value="客户" />
</c:if>
<c:if test="${type=='PROVIDER'}">
	<c:set var="estTypeName" value="供应商" />
</c:if>
<c:if test="${type=='COOPERATOR'}">
	<c:set var="estTypeName" value="外协商" />
</c:if>
<c:set var="pageTitle" value="${estTypeName}名称检查" />
<%@ include file="../inc/Title.jsp"%>
<head>
<link rel="stylesheet" type="text/css" href="/css/base.css" />
<link href="/css/Query.css" rel="stylesheet" type="text/css">
<script src="/js/QueryList.js"></script>
<script language="javascript">
	function doInit(){
		Window_Onload();
	}
	function DoubleClick(it){
		
	}
	function doEnabled(id){
		window.location="/base/EstablishmentEnabled.ihtm?id="+id+"&from_url="+encodeURIComponent(window.location);
	}
</script>
</head>
<body oncontextmenu="return false" scroll="auto" onload="doInit();" class="sheet">
<div class="sheet-main" style="width:550px">
	<div class="sheet-top">
		<div class="content">
			<h2>${estTypeName}名称检查</h2>
			<p>关键字：${checkKey}</p>
		</div>
	</div>
	<div class="sheet-list">
		<div class="search-business">
			<%@include file="../inc/AlertMsg.jsp"%>
			<div class="table-list">
				<table width="100%">
					<tr>
						<th width="18%" >编号</th>
						<th width="32%" >名称</th>
						<th width="15%" >经办人</th>
						<th width="10%" >状态</th>
						<th width="15%" >创建日期</th>
						<th width="10%" >操作</th>
					</tr>
					<c:forEach var="item" items="${list}" varStatus="i">
					<c:if test="${(i.index mod 2)==0}"><c:set var="trClass" value="query_list_data_tr1" /></c:if>
					<c:if test="${(i.index mod 2)!=0}"><c:set var="trClass" value="query_list_data_tr2" /></c:if>
					<tr class="${trClass}" style="color:#000000" index="${i.index+1}" style='cursor:pointer;' ondblclick='javascript:DoubleClick(this)' onClick='javascript:ClickCheck(this)' onmouseout='javascript:mouseout(this)' onmouseover='javascript:mouseover(this)'>
						<td >
							${item.estCode}
							<input type="radio" onClick="javascript:ClickCheck(this);" name='query_checkbox' value="${item.id}" style="display:none">
						</td>
						<td>${item.estName}</td>
						<td>${item.managerName}</td>
						<td>
							<c:if test="${item.enabled=='Y'}">
								<c:if test="${item.status=='Y'}">正常</c:if>
								<c:if test="${item.status=='N'}"><font color="blue">停用</font></c:if>
							</c:if>
							<c:if test="${item.enabled!='Y'}"><font color="#ff0000">已删除</font></c:if>
						</td>
						<td>
							<c:if test="${item.createTime!=null}"><fmt:formatDate value="${item.createTime}" pattern="yyyy-MM-dd"/></c:if>
						</td>
						<td>
							<c:if test="${item.enabled!='Y'}"><a href="javascript:doEnabled(${item.id});">恢复</a></c:if>
						</td>
					</tr>
					</c:forEach>
				</table>
			</div>
		</div>
	</div>
</div>
</body>
</html>